# ap镜像构建文件
FROM golang:1.20.7-bullseye AS builder
WORKDIR /app
COPY . .
RUN bash go_env_setup.bash
RUN go build -o main ap/main/ap_server.go

FROM ubuntu:latest
WORKDIR /app
COPY --from=builder /app/main .
ENTRYPOINT /app/main


